﻿<UserControl x:Class="Invaders.View.AnimatedImage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Invaders.View"
             mc:Ignorable="d" 
             d:DesignHeight="15" d:DesignWidth="15">
    <UserControl.Resources>
        <Storyboard x:Key="invaderShotStoryboard" >
            <DoubleAnimation From="1" To="0" Storyboard.TargetName="image"
                             Storyboard.TargetProperty="Opacity" Duration="0:0:0.5"/>
        </Storyboard>
        <Storyboard x:Key="flashStoryboard">
            <DoubleAnimation From="1" To="0" Storyboard.TargetName="image"
                             Storyboard.TargetProperty="Opacity" Duration="0:0:2.5"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid Margin="0,0,-12.8,-2.8">
        <Image x:Name="image" Stretch="Fill" Margin="0,0,-10,-10" />
    </Grid>
</UserControl>
